package com.example.a22310.myapplication.Fragment.Club.Item;


import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.a22310.myapplication.Beans.Club;
import com.example.a22310.myapplication.R;
import com.example.a22310.myapplication.ViewModel.Club.ClubVideoViewModel;


public class ClubVideoFragment  extends Fragment {
    View view;
    private FragmentClubVideoBinding binding;
    private Club.ClublistBean clublistBean;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_club_video, container, false);
        binding = DataBindingUtil.inflate(inflater,
                R.layout.fragment_club_video, container, false);
        Intent intent = getActivity().getIntent();
        clublistBean=( Club.ClublistBean)intent.getSerializableExtra("club");
        // binding.setModel(this);
        new ClubVideoViewModel(getActivity(),clublistBean.getId(),binding);
        return binding.getRoot();
    }
}